

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Edit ContactInfo</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">ContactInfo List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New ContactInfo</g:link></span>
        </div>
        <div class="body">
            <h1>Edit ContactInfo</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${contactInfoInstance}">
            <div class="errors">
                <g:renderErrors bean="${contactInfoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <input type="hidden" name="id" value="${contactInfoInstance?.id}" />
                <input type="hidden" name="version" value="${contactInfoInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="streetAddress">Street Address:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'streetAddress','errors')}">
                                    <input type="text" id="streetAddress" name="streetAddress" value="${fieldValue(bean:contactInfoInstance,field:'streetAddress')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="townAddress">Town Address:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'townAddress','errors')}">
                                    <input type="text" id="townAddress" name="townAddress" value="${fieldValue(bean:contactInfoInstance,field:'townAddress')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="zipcode">Zipcode:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'zipcode','errors')}">
                                    <input type="text" id="zipcode" name="zipcode" value="${fieldValue(bean:contactInfoInstance,field:'zipcode')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="prefEmail">Pref Email:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'prefEmail','errors')}">
                                    <input type="text" id="prefEmail" name="prefEmail" value="${fieldValue(bean:contactInfoInstance,field:'prefEmail')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cellPhone">Cell Phone:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'cellPhone','errors')}">
                                    <input type="text" id="cellPhone" name="cellPhone" value="${fieldValue(bean:contactInfoInstance,field:'cellPhone')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email">Email:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'email','errors')}">
                                    <input type="text" id="email" name="email" value="${fieldValue(bean:contactInfoInstance,field:'email')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="homePhone">Home Phone:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'homePhone','errors')}">
                                    <input type="text" id="homePhone" name="homePhone" value="${fieldValue(bean:contactInfoInstance,field:'homePhone')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="workPhone">Work Phone:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'workPhone','errors')}">
                                    <input type="text" id="workPhone" name="workPhone" value="${fieldValue(bean:contactInfoInstance,field:'workPhone')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastUpdated">Last Updated:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:contactInfoInstance,field:'lastUpdated','errors')}">
                                    <g:datePicker name="lastUpdated" value="${contactInfoInstance?.lastUpdated}" ></g:datePicker>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
